package cn.edu.seu.cose.qol.model.dto.question;

public class AddressableQuestionAdapter
		implements Adapter<AddressableQuestionInstance, QuestionInstance> {

	@Override
	public AddressableQuestionInstance adapt(QuestionInstance adaptee) {
		String body = adaptee.getBody();
		QuestionContentType type = adaptee.getContentType();
		AddressableQuestionInstance briefQuestion = new AddressableQuestionInstance(body, type);
		return briefQuestion;
	}

}
